package nancal.mp.db.mongo.entity.dev

import nancal.mp.db.mongo.GitServerTypeEnum
import nbcp.base.db.annotation.Cn
import nbcp.base.db.annotation.DbEntityGroup
import nbcp.base.model.BaseMarkEntity
import org.springframework.data.mongodb.core.mapping.Document

@Document
@DbEntityGroup("dev")
@Cn("Git服务器")
data class GitServer(
    var code: String = "",
    var name: String = "",
    @Cn("地址") var host: String = "",
    var userName: String = "",
    var password: String = "",
    var gitServerType: GitServerTypeEnum = GitServerTypeEnum.Gitea,
    @Cn("Git访问令牌") var accessToken: String = "",

    @Cn("jenkins中的credential")
        var jenkinsCredential: String = "",
    @Cn("备注") var remark: String = "",
) : BaseMarkEntity()